<?php
// No direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
?>
<form action="<?php echo JRoute::_('index.php?option=com_kms_video&layout=edit&segment_id='.(int) $this->item->segment_id .'&video_id=' . (int) $this->item->video_id); ?>"
      method="post" name="adminForm" id="kms_video_segment-form">
        <fieldset class="adminform">
                <legend><?php echo JText::_( $this->getVideoName() ); ?></legend>
                <ul class="adminformlist">
<?php foreach($this->form->getFieldset() as $field): ?>
                        <li><?php echo $field->label;echo $field->input;?></li>
<?php endforeach; ?>
						
                </ul>
        </fieldset>
        
        <table class="adminlist">
			<tr>
        <th width="5">
                <?php echo JText::_('COM_KMS_VIDEO_KMS_LABEL_HEADING_ID'); ?>
        </th>
        <th width="20">
                <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->labels); ?>);" />
        </th>                   
        <th>
                <?php echo JText::_('COM_KMS_VIDEO_KMS_VIDEO_FIELD_LABEL_LABEL'); ?>
        </th>
</tr>
        <?php foreach($this->labels as $i => $item): ?>
        <tr class="row<?php echo $i % 2; ?>">
                <td>
                        <?php echo $item->label_id; ?>
                </td>
                <td>
                        <?php echo JHtml::_('grid.id', $i, $item->label_id); ?>
                </td>
                <td>
                        <?php echo $item->label_value; ?>
                </td>
        </tr>
<?php endforeach; ?>
</table>

        <div>
				<input type="hidden" id="return" name="return" value="<?php echo base64_encode( JFactory::getURI() ); ?>">
                <input type="hidden" name="task" value="kms_video_segment.edit" />
                <?php echo JHtml::_('form.token'); ?>
        </div>
</form>
